<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title><%= webpackConfig.name %></title>
    <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
	  <style>
    html,
    body,
    #app {
      height: 100%;
      margin: 0px;
      padding: 0px;
    }
    .chromeframe {
      margin: 0.2em 0;
      background: #ccc;
      color: #000;
      padding: 0.2em 0;
    }

    #loader-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 999999;
      background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .loader-logo {
      width: 100px;
      height: 100px;
      margin-bottom: 30px;
      background: url('./favicon.ico') no-repeat center center;
      background-size: contain;
    }

    .spinner {
      width: 50px;
      height: 50px;
      position: relative;
      margin: 0 auto;
    }

    .double-bounce1, .double-bounce2 {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: #667eea;
      opacity: 0.6;
      position: absolute;
      top: 0;
      left: 0;
      
      -webkit-animation: bounce 2.0s infinite ease-in-out;
      animation: bounce 2.0s infinite ease-in-out;
    }

    .double-bounce2 {
      -webkit-animation-delay: -1.0s;
      animation-delay: -1.0s;
    }

    @-webkit-keyframes bounce {
      0%, 100% { -webkit-transform: scale(0.0) }
      50% { -webkit-transform: scale(1.0) }
    }

    @keyframes bounce {
      0%, 100% { 
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
      } 50% { 
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
      }
    }

    .loader-text {
      color: #333;
      font-family: 'Microsoft YaHei', Arial, sans-serif;
      font-size: 18px;
      margin-top: 20px;
      text-align: center;
    }

    .loader-subtext {
      color: #666;
      font-family: 'Microsoft YaHei', Arial, sans-serif;
      font-size: 14px;
      margin-top: 10px;
      text-align: center;
    }

    .loaded #loader-wrapper {
      visibility: hidden;
      opacity: 0;
      -webkit-transition: all 0.5s ease-out;
      transition: all 0.5s ease-out;
    }

    .no-js #loader-wrapper {
      display: none;
    }

    .no-js h1 {
      color: #222222;
    }
  </style>
  </head>
  <body>
    <div id="app">
	    <div id="loader-wrapper">
        <div class="loader-logo"></div>
        <div class="spinner">
          <div class="double-bounce1"></div>
          <div class="double-bounce2"></div>
        </div>
        <div class="loader-text">Mood Harbor 系统</div>
        <div class="loader-subtext">正在加载系统资源，请耐心等待</div>
      </div>
	</div>
  <script>
    // 监听页面加载完成事件
    window.addEventListener('load', function() {
      // 页面加载完成后开始计时
      setTimeout(function() {
        document.body.classList.add('loaded');
      }, 500); // 修改为500毫秒，避免长时间等待
    });
  </script>
  </body>
</html>